package com.xuecheng.user.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author 勾新杰
 * @since 2025-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xc_menu")
@ApiModel(description="菜单")
public class XcMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 菜单编码
     */
    @ApiModelProperty(value = "菜单编码")
    private String code;

    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID")
    private String pId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String menuName;

    /**
     * 请求地址
     */
    @ApiModelProperty(value = "请求地址")
    private String url;

    /**
     * 是否是菜单
     */
    @ApiModelProperty(value = "是否是菜单")
    private String isMenu;

    /**
     * 菜单层级
     */
    @ApiModelProperty(value = "菜单层级")
    private Integer level;

    /**
     * 菜单排序
     */
    @ApiModelProperty(value = "菜单排序")
    private Integer sort;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
